home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / packages / tools / enumerate.dtx < prev    next >
LaTeX Document  |  1995-03-15  |  8.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document text default
98% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 5c 69 66 66 61 6c | 73 65 0a 25 25 20 46 69 |% \iffal|se.%% Fi|
|00000010| 6c 65 3a 20 65 6e 75 6d | 65 72 61 74 2e 64 74 78 |le: enum|erat.dtx|
|00000020| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00000030| 39 39 33 2d 31 39 39 34 | 20 44 61 76 69 64 20 43 |993-1994| David C|
|00000040| 61 72 6c 69 73 6c 65 0a | 25 0a 25 3c 70 61 63 6b |arlisle.|%.%<pack|
|00000050| 61 67 65 3e 5c 4e 65 65 | 64 73 54 65 58 46 6f 72 |age>\Nee|dsTeXFor|
|00000060| 6d 61 74 7b 4c 61 54 65 | 58 32 65 7d 0a 25 3c 70 |mat{LaTe|X2e}.%<p|
|00000070| 61 63 6b 61 67 65 3e 5c | 50 72 6f 76 69 64 65 73 |ackage>\|Provides|
|00000080| 50 61 63 6b 61 67 65 7b | 65 6e 75 6d 65 72 61 74 |Package{|enumerat|
|00000090| 65 7d 0a 25 3c 70 61 63 | 6b 61 67 65 3e 20 20 20 |e}.%<pac|kage> |
|000000a0| 20 20 20 20 20 20 5b 31 | 39 39 34 2f 30 31 2f 33 | [1|994/01/3|
|000000b0| 31 20 76 32 2e 30 32 20 | 65 6e 75 6d 65 72 61 74 |1 v2.02 |enumerat|
|000000c0| 65 20 65 78 74 65 6e 73 | 69 6f 6e 73 20 28 44 50 |e extens|ions (DP|
|000000d0| 43 29 5d 0a 25 0a 25 3c | 2a 64 72 69 76 65 72 3e |C)].%.%<|*driver>|
|000000e0| 0a 5c 64 6f 63 75 6d 65 | 6e 74 63 6c 61 73 73 7b |.\docume|ntclass{|
|000000f0| 6c 74 78 64 6f 63 7d 0a | 5c 75 73 65 70 61 63 6b |ltxdoc}.|\usepack|
|00000100| 61 67 65 7b 65 6e 75 6d | 65 72 61 74 65 7d 0a 5c |age{enum|erate}.\|
|00000110| 47 65 74 46 69 6c 65 49 | 6e 66 6f 7b 65 6e 75 6d |GetFileI|nfo{enum|
|00000120| 65 72 61 74 65 2e 73 74 | 79 7d 0a 5c 62 65 67 69 |erate.st|y}.\begi|
|00000130| 6e 7b 64 6f 63 75 6d 65 | 6e 74 7d 0a 5c 74 69 74 |n{docume|nt}.\tit|
|00000140| 6c 65 7b 54 68 65 20 5c | 74 65 78 74 73 66 7b 65 |le{The \|textsf{e|
|00000150| 6e 75 6d 65 72 61 74 65 | 7d 20 70 61 63 6b 61 67 |numerate|} packag|
|00000160| 65 5c 74 68 61 6e 6b 73 | 7b 54 68 69 73 20 66 69 |e\thanks|{This fi|
|00000170| 6c 65 0a 20 20 20 20 20 | 20 20 20 68 61 73 20 76 |le. | has v|
|00000180| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 20 5c 66 |ersion n|umber \f|
|00000190| 69 6c 65 76 65 72 73 69 | 6f 6e 2c 20 6c 61 73 74 |ileversi|on, last|
|000001a0| 0a 20 20 20 20 20 20 20 | 20 72 65 76 69 73 65 64 |. | revised|
|000001b0| 20 5c 66 69 6c 65 64 61 | 74 65 2e 7d 7d 0a 5c 61 | \fileda|te.}}.\a|
|000001c0| 75 74 68 6f 72 7b 44 61 | 76 69 64 20 43 61 72 6c |uthor{Da|vid Carl|
|000001d0| 69 73 6c 65 5c 5c 63 61 | 72 6c 69 73 6c 65 40 63 |isle\\ca|rlisle@c|
|000001e0| 73 2e 6d 61 6e 2e 61 63 | 2e 75 6b 7d 0a 5c 64 61 |s.man.ac|.uk}.\da|
|000001f0| 74 65 7b 5c 66 69 6c 65 | 64 61 74 65 7d 0a 5c 6d |te{\file|date}.\m|
|00000200| 61 6b 65 74 69 74 6c 65 | 0a 5c 44 6f 63 49 6e 70 |aketitle|.\DocInp|
|00000210| 75 74 7b 65 6e 75 6d 65 | 72 61 74 65 2e 64 74 78 |ut{enume|rate.dtx|
|00000220| 7d 0a 5c 65 6e 64 7b 64 | 6f 63 75 6d 65 6e 74 7d |}.\end{d|ocument}|
|00000230| 0a 25 3c 2f 64 72 69 76 | 65 72 3e 0a 25 20 5c 66 |.%</driv|er>.% \f|
|00000240| 69 0a 25 0a 25 20 25 25 | 25 25 25 25 25 25 25 25 |i.%.% %%|%%%%%%%%|
|00000250| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000260| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000270| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000280| 25 25 25 25 25 25 25 25 | 25 25 0a 25 0a 25 20 5c |%%%%%%%%|%%.%.% \|
|00000290| 43 68 65 63 6b 53 75 6d | 7b 31 39 37 7d 0a 25 0a |CheckSum|{197}.%.|
|000002a0| 25 20 5c 63 68 61 6e 67 | 65 73 7b 76 31 2e 30 30 |% \chang|es{v1.00|
|000002b0| 7d 7b 31 39 39 30 2f 30 | 30 2f 30 30 7d 7b 46 69 |}{1990/0|0/00}{Fi|
|000002c0| 72 73 74 20 76 65 72 73 | 69 6f 6e 20 28 73 69 6e |rst vers|ion (sin|
|000002d0| 63 65 20 6c 6f 73 74 29 | 7d 0a 25 20 5c 63 68 61 |ce lost)|}.% \cha|
|000002e0| 6e 67 65 73 7b 76 32 2e | 30 30 7d 7b 31 39 39 31 |nges{v2.|00}{1991|
|000002f0| 2f 30 37 2f 32 35 7d 7b | 4e 65 77 20 41 6c 67 6f |/07/25}{|New Algo|
|00000300| 72 69 74 68 6d 7d 0a 25 | 20 5c 63 68 61 6e 67 65 |rithm}.%| \change|
|00000310| 73 7b 76 32 2e 30 31 7d | 7b 31 39 39 32 2f 30 36 |s{v2.01}|{1992/06|
|00000320| 2f 32 36 7d 7b 52 65 2d | 69 73 73 75 65 20 66 6f |/26}{Re-|issue fo|
|00000330| 72 20 74 68 65 20 6e 65 | 77 20 64 6f 63 20 61 6e |r the ne|w doc an|
|00000340| 64 20 64 6f 63 73 74 72 | 69 70 2e 7d 0a 25 20 5c |d docstr|ip.}.% \|
|00000350| 63 68 61 6e 67 65 73 7b | 76 32 2e 30 32 7d 7b 31 |changes{|v2.02}{1|
|00000360| 39 39 34 2f 30 31 2f 33 | 31 7d 7b 55 70 64 61 74 |994/01/3|1}{Updat|
|00000370| 65 20 66 6f 72 20 4c 61 | 54 65 58 32 65 7d 0a 25 |e for La|TeX2e}.%|
|00000380| 0a 25 20 5c 62 65 67 69 | 6e 7b 61 62 73 74 72 61 |.% \begi|n{abstra|
|00000390| 63 74 7d 0a 25 20 54 68 | 69 73 20 70 61 63 6b 61 |ct}.% Th|is packa|
|000003a0| 67 65 20 67 69 76 65 73 | 20 74 68 65 20 65 6e 75 |ge gives| the enu|
|000003b0| 6d 65 72 61 74 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |merate e|nvironme|
|000003c0| 6e 74 20 61 6e 20 6f 70 | 74 69 6f 6e 61 6c 20 61 |nt an op|tional a|
|000003d0| 72 67 75 6d 65 6e 74 0a | 25 20 77 68 69 63 68 20 |rgument.|% which |
|000003e0| 64 65 74 65 72 6d 69 6e | 65 73 20 74 68 65 20 73 |determin|es the s|
|000003f0| 74 79 6c 65 20 69 6e 20 | 77 68 69 63 68 20 74 68 |tyle in |which th|
|00000400| 65 20 63 6f 75 6e 74 65 | 72 20 69 73 20 70 72 69 |e counte|r is pri|
|00000410| 6e 74 65 64 2e 0a 25 0a | 25 20 41 6e 20 6f 63 63 |nted..%.|% An occ|
|00000420| 75 72 65 6e 63 65 20 6f | 66 20 6f 6e 65 20 6f 66 |urence o|f one of|
|00000430| 20 74 68 65 20 74 6f 6b | 65 6e 73 20 7c 41 20 61 | the tok|ens |A a|
|00000440| 20 49 20 69 7c 20 6f 72 | 20 7c 31 7c 20 70 72 6f | I i| or| |1| pro|
|00000450| 64 75 63 65 73 20 74 68 | 65 20 76 61 6c 75 65 0a |duces th|e value.|
|00000460| 25 20 6f 66 20 74 68 65 | 20 63 6f 75 6e 74 65 72 |% of the| counter|
|00000470| 20 70 72 69 6e 74 65 64 | 20 77 69 74 68 20 28 72 | printed| with (r|
|00000480| 65 73 70 65 63 74 69 76 | 65 6c 79 29 20 7c 5c 41 |espectiv|ely) |\A|
|00000490| 6c 70 68 20 5c 61 6c 70 | 68 20 5c 52 6f 6d 61 6e |lph \alp|h \Roman|
|000004a0| 20 5c 72 6f 6d 61 6e 7c | 0a 25 20 6f 72 20 7c 5c | \roman||.% or |\|
|000004b0| 61 72 61 62 69 63 7c 2e | 0a 25 0a 25 20 54 68 65 |arabic|.|.%.% The|
|000004c0| 73 65 20 6c 65 74 74 65 | 72 73 20 6d 61 79 20 62 |se lette|rs may b|
|000004d0| 65 20 73 75 72 72 6f 75 | 6e 64 65 64 20 62 79 20 |e surrou|nded by |
|000004e0| 61 6e 79 20 73 74 72 69 | 6e 67 73 20 69 6e 76 6f |any stri|ngs invo|
|000004f0| 6c 76 69 6e 67 20 61 6e | 79 20 6f 74 68 65 72 0a |lving an|y other.|
|00000500| 25 20 5c 54 65 58 5c 20 | 65 78 70 72 65 73 73 69 |% \TeX\ |expressi|
|00000510| 6f 6e 73 2c 20 68 6f 77 | 65 76 65 72 20 74 68 65 |ons, how|ever the|
|00000520| 20 74 6f 6b 65 6e 73 20 | 7c 41 20 61 20 49 20 69 | tokens ||A a I i|
|00000530| 20 31 7c 20 6d 75 73 74 | 20 62 65 20 69 6e 73 69 | 1| must| be insi|
|00000540| 64 65 20 61 0a 25 20 7c | 7b 20 7d 7c 20 67 72 6f |de a.% ||{ }| gro|
|00000550| 75 70 20 69 66 20 74 68 | 65 79 20 61 72 65 20 6e |up if th|ey are n|
|00000560| 6f 74 20 74 6f 20 62 65 | 20 74 61 6b 65 6e 20 61 |ot to be| taken a|
|00000570| 73 20 73 70 65 63 69 61 | 6c 2e 0a 25 20 5c 65 6e |s specia|l..% \en|
|00000580| 64 7b 61 62 73 74 72 61 | 63 74 7d 0a 25 0a 25 20 |d{abstra|ct}.%.% |
|00000590| 5c 73 65 63 74 69 6f 6e | 7b 45 78 61 6d 70 6c 65 |\section|{Example|
|000005a0| 73 7d 0a 25 5c 73 68 6f | 77 62 6f 78 64 65 70 74 |s}.%\sho|wboxdept|
|000005b0| 68 3d 31 30 0a 25 20 5c | 73 68 6f 77 62 6f 78 62 |h=10.% \|showboxb|
|000005c0| 72 65 61 64 74 68 3d 31 | 30 0a 25 20 5c 5b 0a 25 |readth=1|0.% \[.%|
|000005d0| 20 5c 70 61 72 62 6f 78 | 7b 32 2e 32 69 6e 7d 7b | \parbox|{2.2in}{|
|000005e0| 5c 68 62 61 64 6e 65 73 | 73 32 30 30 30 0a 25 20 |\hbadnes|s2000.% |
|000005f0| 5c 62 65 67 69 6e 7b 65 | 6e 75 6d 65 72 61 74 65 |\begin{e|numerate|
|00000600| 7d 5b 45 58 20 69 2e 5d | 0a 25 20 5c 69 74 65 6d |}[EX i.]|.% \item|
|00000610| 20 6f 6e 65 20 6f 6e 65 | 20 6f 6e 65 20 6f 6e 65 | one one| one one|
|00000620| 20 6f 6e 65 20 6f 6e 65 | 20 6f 6e 65 0a 25 20 20 | one one| one.% |
|00000630| 20 20 20 20 20 20 6f 6e | 65 20 6f 6e 65 20 6f 6e | on|e one on|
|00000640| 65 20 6f 6e 65 20 6f 6e | 65 5c 6c 61 62 65 6c 7b |e one on|e\label{|
|00000650| 4c 41 7d 0a 25 20 5c 69 | 74 65 6d 20 74 77 6f 0a |LA}.% \i|tem two.|
|00000660| 25 20 20 20 20 20 5c 62 | 65 67 69 6e 7b 65 6e 75 |% \b|egin{enu|
|00000670| 6d 65 72 61 74 65 7d 5b | 7b 65 78 61 6d 70 6c 65 |merate}[|{example|
|00000680| 7d 20 61 29 5d 0a 25 20 | 20 20 20 20 5c 69 74 65 |} a)].% | \ite|
|00000690| 6d 20 6f 6e 65 20 6f 66 | 20 74 77 6f 20 20 6f 6e |m one of| two on|
|000006a0| 65 20 6f 66 20 74 77 6f | 20 20 6f 6e 65 20 6f 66 |e of two| one of|
|000006b0| 20 74 77 6f 5c 6c 61 62 | 65 6c 7b 4c 42 7d 0a 25 | two\lab|el{LB}.%|
|000006c0| 20 20 20 20 20 5c 69 74 | 65 6d 20 74 77 6f 20 6f | \it|em two o|
|000006d0| 66 20 74 77 6f 0a 25 20 | 20 20 20 20 5c 65 6e 64 |f two.% | \end|
|000006e0| 7b 65 6e 75 6d 65 72 61 | 74 65 7d 0a 25 20 5c 65 |{enumera|te}.% \e|
|000006f0| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 25 20 |nd{enume|rate}.% |
|00000700| 5c 62 65 67 69 6e 7b 65 | 6e 75 6d 65 72 61 74 65 |\begin{e|numerate|
|00000710| 7d 5b 7b 41 7d 2d 31 5d | 0a 25 20 5c 69 74 65 6d |}[{A}-1]|.% \item|
|00000720| 20 6f 6e 65 5c 6c 61 62 | 65 6c 7b 4c 43 7d 0a 25 | one\lab|el{LC}.%|
|00000730| 20 5c 69 74 65 6d 20 74 | 77 6f 0a 25 20 5c 65 6e | \item t|wo.% \en|
|00000740| 64 7b 65 6e 75 6d 65 72 | 61 74 65 7d 7d 0a 25 20 |d{enumer|ate}}.% |
|00000750| 5c 68 73 70 61 63 65 7b | 32 30 70 74 7d 0a 25 20 |\hspace{|20pt}.% |
|00000760| 5c 76 63 65 6e 74 65 72 | 7b 5c 68 73 69 7a 65 3d |\vcenter|{\hsize=|
|00000770| 32 2e 34 69 6e 0a 25 20 | 5c 62 65 67 69 6e 7b 76 |2.4in.% |\begin{v|
|00000780| 65 72 62 61 74 69 6d 7d | 0a 25 20 5c 62 65 67 69 |erbatim}|.% \begi|
|00000790| 6e 7b 65 6e 75 6d 65 72 | 61 74 65 7d 5b 45 58 20 |n{enumer|ate}[EX |
|000007a0| 69 2e 5d 0a 25 20 5c 69 | 74 65 6d 20 6f 6e 65 20 |i.].% \i|tem one |
|000007b0| 6f 6e 65 20 6f 6e 65 20 | 6f 6e 65 20 6f 6e 65 20 |one one |one one |
|000007c0| 6f 6e 65 20 6f 6e 65 0a | 25 20 20 20 20 20 20 20 |one one.|% |
|000007d0| 20 6f 6e 65 20 6f 6e 65 | 20 6f 6e 65 20 6f 6e 65 | one one| one one|
|000007e0| 5c 6c 61 62 65 6c 7b 4c | 41 7d 0a 25 20 5c 69 74 |\label{L|A}.% \it|
|000007f0| 65 6d 20 74 77 6f 0a 25 | 20 20 20 20 20 5c 62 65 |em two.%| \be|
|00000800| 67 69 6e 7b 65 6e 75 6d | 65 72 61 74 65 7d 5b 7b |gin{enum|erate}[{|
|00000810| 65 78 61 6d 70 6c 65 7d | 20 61 29 5d 0a 25 20 20 |example}| a)].% |
|00000820| 20 20 20 5c 69 74 65 6d | 20 6f 6e 65 20 6f 66 20 | \item| one of |
|00000830| 74 77 6f 20 20 6f 6e 65 | 20 6f 66 20 74 77 6f 0a |two one| of two.|
|00000840| 25 20 20 20 20 20 20 20 | 20 20 20 20 6f 6e 65 20 |% | one |
|00000850| 6f 66 20 74 77 6f 5c 6c | 61 62 65 6c 7b 4c 42 7d |of two\l|abel{LB}|
|00000860| 0a 25 20 20 20 20 20 5c | 69 74 65 6d 20 74 77 6f |.% \|item two|
|00000870| 20 6f 66 20 74 77 6f 0a | 25 20 20 20 20 20 5c 65 | of two.|% \e|
|00000880| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 25 20 |nd{enume|rate}.% |
|00000890| 20 20 20 20 5c 69 74 65 | 6d 20 74 77 6f 20 6f 66 | \ite|m two of|
|000008a0| 20 74 77 6f 0a 25 20 20 | 20 20 20 5c 65 6e 64 7b | two.% | \end{|
|000008b0| 65 6e 75 6d 65 72 61 74 | 65 7d 0a 25 20 5c 65 6e |enumerat|e}.% \en|
|000008c0| 64 7b 65 6e 75 6d 65 72 | 61 74 65 7d 0a 25 0a 25 |d{enumer|ate}.%.%|
|000008d0| 20 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 | \begin{|enumerat|
|000008e0| 65 7d 5b 7b 41 7d 2d 31 | 5d 0a 25 20 5c 69 74 65 |e}[{A}-1|].% \ite|
|000008f0| 6d 20 6f 6e 65 5c 6c 61 | 62 65 6c 7b 4c 43 7d 0a |m one\la|bel{LC}.|
|00000900| 25 20 5c 69 74 65 6d 20 | 74 77 6f 0a 25 20 5c 65 |% \item |two.% \e|
|00000910| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 25 20 |nd{enume|rate}.% |
|00000920| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 25 |\end{ver|batim}.%|
|00000930| 20 7d 5c 5d 0a 25 0a 25 | 20 7c 5c 6c 61 62 65 6c | }\].%.%| |\label|
|00000940| 7c 20 61 6e 64 20 7c 5c | 72 65 66 7c 20 6d 61 79 || and |\|ref| may|
|00000950| 20 62 65 20 75 73 65 64 | 20 61 73 20 77 69 74 68 | be used| as with|
|00000960| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 7b 5c | the sta|ndard {\|
|00000970| 74 74 0a 25 20 65 6e 75 | 6d 65 72 61 74 65 7d 20 |tt.% enu|merate} |
|00000980| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 20 7c 5c 72 |environm|ent. |\r|
|00000990| 65 66 7c 20 6f 6e 6c 79 | 20 70 72 6f 64 75 63 65 |ef| only| produce|
|000009a0| 73 20 74 68 65 20 63 6f | 75 6e 74 65 72 20 76 61 |s the co|unter va|
|000009b0| 6c 75 65 2c 0a 25 20 6e | 6f 74 20 74 68 65 20 77 |lue,.% n|ot the w|
|000009c0| 68 6f 6c 65 20 6c 61 62 | 65 6c 2e 20 7c 5c 72 65 |hole lab|el. |\re|
|000009d0| 66 7c 20 70 72 69 6e 74 | 73 20 74 68 65 20 76 61 |f| print|s the va|
|000009e0| 6c 75 65 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |lue in t|he same |
|000009f0| 73 74 79 6c 65 0a 25 20 | 61 73 20 7c 5c 69 74 65 |style.% |as |\ite|
|00000a00| 6d 7c 2c 20 61 73 20 64 | 65 74 65 72 6d 69 6e 65 |m|, as d|etermine|
|00000a10| 64 20 62 79 20 74 68 65 | 20 70 72 65 73 65 6e 63 |d by the| presenc|
|00000a20| 65 20 6f 66 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |e of one| of the |
|00000a30| 74 6f 6b 65 6e 73 0a 25 | 20 7c 41 20 61 20 49 20 |tokens.%| |A a I |
|00000a40| 69 20 31 7c 20 69 6e 20 | 74 68 65 20 6f 70 74 69 |i 1| in |the opti|
|00000a50| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 2e 20 49 |onal arg|ument. I|
|00000a60| 6e 20 74 68 65 20 61 62 | 6f 76 65 20 65 78 61 6d |n the ab|ove exam|
|00000a70| 70 6c 65 0a 25 20 7c 5c | 72 65 66 7b 4c 41 7d 7c |ple.% |\|ref{LA}||
|00000a80| 2c 20 7c 5c 72 65 66 7b | 4c 42 7d 7c 20 61 6e 64 |, |\ref{|LB}| and|
|00000a90| 20 7c 5c 72 65 66 7b 4c | 43 7d 7c 20 70 72 6f 64 | |\ref{L|C}| prod|
|00000aa0| 75 63 65 0a 25 20 60 5c | 72 65 66 7b 4c 41 7d 27 |uce.% `\|ref{LA}'|
|00000ab0| 2c 20 20 60 5c 72 65 66 | 7b 4c 42 7d 27 20 61 6e |, `\ref|{LB}' an|
|00000ac0| 64 20 60 5c 72 65 66 7b | 4c 43 7d 27 20 72 65 73 |d `\ref{|LC}' res|
|00000ad0| 70 65 63 74 69 76 65 6c | 79 2e 0a 25 0a 25 20 5c |pectivel|y..%.% \|
|00000ae0| 53 74 6f 70 45 76 65 6e | 74 75 61 6c 6c 79 7b 7d |StopEven|tually{}|
|00000af0| 0a 25 0a 25 5c 73 65 63 | 74 69 6f 6e 7b 4d 61 63 |.%.%\sec|tion{Mac|
|00000b00| 72 6f 73 7d 0a 25 0a 25 | 20 20 20 20 5c 62 65 67 |ros}.%.%| \beg|
|00000b10| 69 6e 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 3c |in{macro|code}.%<|
|00000b20| 2a 70 61 63 6b 61 67 65 | 3e 0a 25 20 20 20 20 5c |*package|>.% \|
|00000b30| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00000b40| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|00000b50| 7b 5c 40 65 6e 6c 61 62 | 7d 0a 25 20 49 6e 74 65 |{\@enlab|}.% Inte|
|00000b60| 72 6e 61 6c 20 74 6f 6b | 65 6e 20 72 65 67 69 73 |rnal tok|en regis|
|00000b70| 74 65 72 20 75 73 65 64 | 20 74 6f 20 62 75 69 6c |ter used| to buil|
|00000b80| 64 20 75 70 20 74 68 65 | 20 6c 61 62 65 6c 20 63 |d up the| label c|
|00000b90| 6f 6d 6d 61 6e 64 20 66 | 72 6f 6d 20 74 68 65 0a |ommand f|rom the.|
|00000ba0| 25 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |% option|al argum|
|00000bb0| 65 6e 74 2e 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ent..% | \begin|
|00000bc0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 5c 6e 65 77 |{macroco|de}.\new|
|00000bd0| 74 6f 6b 73 5c 40 65 6e | 4c 61 62 0a 25 20 20 20 |toks\@en|Lab.% |
|00000be0| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 63 6f 64 65 7d | \end{ma|crocode}|
|00000bf0| 0a 25 20 5c 65 6e 64 7b | 6d 61 63 72 6f 7d 0a 25 |.% \end{|macro}.%|
|00000c00| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|00000c10| 7b 5c 40 65 6e 51 6d 61 | 72 6b 7d 0a 25 20 54 68 |{\@enQma|rk}.% Th|
|00000c20| 69 73 20 6a 75 73 74 20 | 65 78 70 61 6e 64 73 20 |is just |expands |
|00000c30| 74 6f 20 61 20 60 3f 27 | 2e 20 7c 5c 72 65 66 7c |to a `?'|. |\ref||
|00000c40| 20 77 69 6c 6c 20 70 72 | 6f 64 75 63 65 20 74 68 | will pr|oduce th|
|00000c50| 69 73 2c 20 69 66 20 6e | 6f 20 63 6f 75 6e 74 65 |is, if n|o counte|
|00000c60| 72 0a 25 20 69 73 20 70 | 72 69 6e 74 65 64 2e 0a |r.% is p|rinted..|
|00000c70| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|00000c80| 6f 63 6f 64 65 7d 0a 5c | 64 65 66 5c 40 65 6e 51 |ocode}.\|def\@enQ|
|00000c90| 6d 61 72 6b 7b 3f 7d 0a | 25 20 20 20 20 5c 65 6e |mark{?}.|% \en|
|00000ca0| 64 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 20 5c |d{macroc|ode}.% \|
|00000cb0| 65 6e 64 7b 6d 61 63 72 | 6f 7d 0a 25 0a 25 20 54 |end{macr|o}.%.% T|
|00000cc0| 68 65 20 6e 65 78 74 20 | 66 6f 75 72 20 6d 61 63 |he next |four mac|
|00000cd0| 72 6f 73 20 62 75 69 6c | 64 20 75 70 20 74 68 65 |ros buil|d up the|
|00000ce0| 20 63 6f 6d 6d 61 6e 64 | 20 74 68 61 74 20 77 69 | command| that wi|
|00000cf0| 6c 6c 20 70 72 69 6e 74 | 20 74 68 65 20 69 74 65 |ll print| the ite|
|00000d00| 6d 0a 25 20 6c 61 62 65 | 6c 2e 20 54 68 65 79 20 |m.% labe|l. They |
|00000d10| 65 61 63 68 20 67 6f 62 | 62 6c 65 20 6f 6e 65 20 |each gob|ble one |
|00000d20| 74 6f 6b 65 6e 20 6f 72 | 20 67 72 6f 75 70 20 66 |token or| group f|
|00000d30| 72 6f 6d 20 74 68 65 20 | 6f 70 74 69 6f 6e 61 6c |rom the |optional|
|00000d40| 20 61 72 67 75 6d 65 6e | 74 2c 0a 25 20 61 6e 64 | argumen|t,.% and|
|00000d50| 20 61 64 64 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | add cor|respondi|
|00000d60| 6e 67 20 74 6f 6b 65 6e | 73 20 74 6f 20 74 68 65 |ng token|s to the|
|00000d70| 20 72 65 67 69 73 74 65 | 72 20 7c 5c 40 65 6e 4c | registe|r |\@enL|
|00000d80| 61 62 7c 2e 20 54 68 65 | 79 20 65 61 63 68 20 65 |ab|. The|y each e|
|00000d90| 6e 64 0a 25 20 77 69 74 | 68 20 61 20 63 61 6c 6c |nd.% wit|h a call|
|00000da0| 20 74 6f 20 7c 5c 40 65 | 6e 6c 6f 6f 70 7c 2c 20 | to |\@e|nloop|, |
|00000db0| 77 68 69 63 68 20 73 74 | 61 72 74 73 20 74 68 65 |which st|arts the|
|00000dc0| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 6f 66 20 74 | process|ing of t|
|00000dd0| 68 65 20 6e 65 78 74 0a | 25 20 74 6f 6b 65 6e 2e |he next.|% token.|
|00000de0| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|00000df0| 7b 5c 40 65 6e 4c 61 62 | 65 6c 7d 0a 25 20 41 64 |{\@enLab|el}.% Ad|
|00000e00| 64 20 74 68 65 20 63 6f | 75 6e 74 65 72 20 74 6f |d the co|unter to|
|00000e10| 20 74 68 65 20 6c 61 62 | 65 6c 2e 20 7c 23 32 7c | the lab|el. |#2||
|00000e20| 20 77 69 6c 6c 20 62 65 | 20 6f 6e 65 20 6f 66 20 | will be| one of |
|00000e30| 74 68 65 20 60 73 70 65 | 63 69 61 6c 27 0a 25 20 |the `spe|cial'.% |
|00000e40| 74 6f 6b 65 6e 73 20 7c | 41 20 61 20 49 20 69 20 |tokens ||A a I i |
|00000e50| 31 7c 2c 20 61 6e 64 20 | 69 73 20 74 68 72 6f 77 |1|, and |is throw|
|00000e60| 6e 20 61 77 61 79 2e 20 | 7c 23 31 7c 20 77 69 6c |n away. ||#1| wil|
|00000e70| 6c 20 62 65 20 61 20 63 | 6f 6d 6d 61 6e 64 0a 25 |l be a c|ommand.%|
|00000e80| 20 6c 69 6b 65 20 7c 5c | 52 6f 6d 61 6e 7c 2e 0a | like |\|Roman|..|
|00000e90| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|00000ea0| 6f 63 6f 64 65 7d 0a 5c | 64 65 66 5c 40 65 6e 4c |ocode}.\|def\@enL|
|00000eb0| 61 62 65 6c 23 31 23 32 | 7b 25 0a 20 20 5c 65 64 |abel#1#2|{%. \ed|
|00000ec0| 65 66 5c 40 65 6e 54 68 | 65 7b 5c 6e 6f 65 78 70 |ef\@enTh|e{\noexp|
|00000ed0| 61 6e 64 23 31 7b 5c 40 | 65 6e 75 6d 63 74 72 7d |and#1{\@|enumctr}|
|00000ee0| 7d 25 0a 20 20 5c 40 65 | 6e 4c 61 62 5c 65 78 70 |}%. \@e|nLab\exp|
|00000ef0| 61 6e 64 61 66 74 65 72 | 7b 5c 74 68 65 5c 40 65 |andafter|{\the\@e|
|00000f00| 6e 4c 61 62 5c 63 73 6e | 61 6d 65 20 74 68 65 5c |nLab\csn|ame the\|
|00000f10| 40 65 6e 75 6d 63 74 72 | 5c 65 6e 64 63 73 6e 61 |@enumctr|\endcsna|
|00000f20| 6d 65 7d 25 0a 20 20 5c | 40 65 6e 6c 6f 6f 70 7d |me}%. \|@enloop}|
|00000f30| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00000f40| 63 6f 64 65 7d 0a 25 20 | 5c 65 6e 64 7b 6d 61 63 |code}.% |\end{mac|
|00000f50| 72 6f 7d 0a 25 0a 25 20 | 5c 62 65 67 69 6e 7b 6d |ro}.%.% |\begin{m|
|00000f60| 61 63 72 6f 7d 7b 5c 40 | 65 6e 53 70 61 63 65 7d |acro}{\@|enSpace}|
|00000f70| 0a 25 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |.% \begi|n{macro}|
|00000f80| 7b 5c 40 65 6e 53 70 40 | 63 65 7d 0a 25 20 41 64 |{\@enSp@|ce}.% Ad|
|00000f90| 64 20 61 20 73 70 61 63 | 65 20 74 6f 20 74 68 65 |d a spac|e to the|
|00000fa0| 20 6c 61 62 65 6c 2e 20 | 54 68 65 20 74 72 69 63 | label. |The tric|
|00000fb0| 6b 79 20 62 69 74 20 69 | 73 20 74 6f 20 67 6f 62 |ky bit i|s to gob|
|00000fc0| 62 6c 65 20 74 68 65 20 | 73 70 61 63 65 20 74 6f |ble the |space to|
|00000fd0| 6b 65 6e 2c 0a 25 20 61 | 73 20 79 6f 75 20 63 61 |ken,.% a|s you ca|
|00000fe0| 6e 20 6e 6f 74 20 64 6f | 20 74 68 69 73 20 77 69 |n not do| this wi|
|00000ff0| 74 68 20 61 20 6d 61 63 | 72 6f 20 61 72 67 75 6d |th a mac|ro argum|
|00001000| 65 6e 74 2e 0a 25 20 20 | 20 20 5c 62 65 67 69 6e |ent..% | \begin|
|00001010| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 5c 64 65 66 |{macroco|de}.\def|
|00001020| 5c 40 65 6e 53 70 61 63 | 65 7b 5c 61 66 74 65 72 |\@enSpac|e{\after|
|00001030| 61 73 73 69 67 6e 6d 65 | 6e 74 5c 40 65 6e 53 70 |assignme|nt\@enSp|
|00001040| 40 63 65 5c 6c 65 74 5c | 40 74 65 6d 70 61 3d 20 |@ce\let\|@tempa= |
|00001050| 7d 0a 5c 64 65 66 5c 40 | 65 6e 53 70 40 63 65 7b |}.\def\@|enSp@ce{|
|00001060| 5c 40 65 6e 4c 61 62 5c | 65 78 70 61 6e 64 61 66 |\@enLab\|expandaf|
|00001070| 74 65 72 7b 5c 74 68 65 | 5c 40 65 6e 4c 61 62 5c |ter{\the|\@enLab\|
|00001080| 73 70 61 63 65 7d 5c 40 | 65 6e 6c 6f 6f 70 7d 0a |space}\@|enloop}.|
|00001090| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|000010a0| 6f 64 65 7d 0a 25 20 5c | 65 6e 64 7b 6d 61 63 72 |ode}.% \|end{macr|
|000010b0| 6f 7d 0a 25 20 5c 65 6e | 64 7b 6d 61 63 72 6f 7d |o}.% \en|d{macro}|
|000010c0| 0a 25 0a 25 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |.%.% \be|gin{macr|
|000010d0| 6f 7d 7b 5c 40 65 6e 47 | 72 6f 75 70 7d 0a 25 20 |o}{\@enG|roup}.% |
|000010e0| 41 64 64 20 61 20 7c 7b | 20 7d 7c 20 67 72 6f 75 |Add a |{| }| grou|
|000010f0| 70 20 74 6f 20 74 68 65 | 20 6c 61 62 65 6c 2e 0a |p to the| label..|
|00001100| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|00001110| 6f 63 6f 64 65 7d 0a 5c | 64 65 66 5c 40 65 6e 47 |ocode}.\|def\@enG|
|00001120| 72 6f 75 70 23 31 7b 5c | 40 65 6e 4c 61 62 5c 65 |roup#1{\|@enLab\e|
|00001130| 78 70 61 6e 64 61 66 74 | 65 72 7b 5c 74 68 65 5c |xpandaft|er{\the\|
|00001140| 40 65 6e 4c 61 62 7b 23 | 31 7d 7d 5c 40 65 6e 6c |@enLab{#|1}}\@enl|
|00001150| 6f 6f 70 7d 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |oop}.% | \end{m|
|00001160| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 5c 65 6e 64 |acrocode|}.% \end|
|00001170| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 5c 62 65 67 |{macro}.|%.% \beg|
|00001180| 69 6e 7b 6d 61 63 72 6f | 7d 7b 5c 40 65 6e 4f 74 |in{macro|}{\@enOt|
|00001190| 68 65 72 7d 0a 25 20 41 | 64 64 20 61 6e 79 74 68 |her}.% A|dd anyth|
|000011a0| 69 6e 67 20 65 6c 73 65 | 20 74 6f 20 74 68 65 20 |ing else| to the |
|000011b0| 6c 61 62 65 6c 0a 25 20 | 20 20 20 5c 62 65 67 69 |label.% | \begi|
|000011c0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 5c 64 65 |n{macroc|ode}.\de|
|000011d0| 66 5c 40 65 6e 4f 74 68 | 65 72 23 31 7b 5c 40 65 |f\@enOth|er#1{\@e|
|000011e0| 6e 4c 61 62 5c 65 78 70 | 61 6e 64 61 66 74 65 72 |nLab\exp|andafter|
|000011f0| 7b 5c 74 68 65 5c 40 65 | 6e 4c 61 62 23 31 7d 5c |{\the\@e|nLab#1}\|
|00001200| 40 65 6e 6c 6f 6f 70 7d | 0a 25 20 20 20 20 5c 65 |@enloop}|.% \e|
|00001210| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 20 |nd{macro|code}.% |
|00001220| 5c 65 6e 64 7b 6d 61 63 | 72 6f 7d 0a 25 0a 25 20 |\end{mac|ro}.%.% |
|00001230| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 7d 7b 5c 40 |\begin{m|acro}{\@|
|00001240| 65 6e 6c 6f 6f 70 7d 0a | 25 20 5c 62 65 67 69 6e |enloop}.|% \begin|
|00001250| 7b 6d 61 63 72 6f 7d 7b | 5c 40 65 6e 6c 6f 6f 70 |{macro}{|\@enloop|
|00001260| 40 7d 0a 25 20 54 68 65 | 20 62 6f 64 79 20 6f 66 |@}.% The| body of|
|00001270| 20 74 68 65 20 6d 61 69 | 6e 20 6c 6f 6f 70 2e 0a | the mai|n loop..|
|00001280| 25 20 45 61 74 69 6e 67 | 20 74 6f 6b 65 6e 73 20 |% Eating| tokens |
|00001290| 74 68 69 73 20 77 61 79 | 20 69 6e 73 74 65 61 64 |this way| instead|
|000012a0| 20 6f 66 20 75 73 69 6e | 67 20 7c 5c 40 74 66 6f | of usin|g |\@tfo|
|000012b0| 72 7c 20 6c 65 74 73 20 | 79 6f 75 20 73 65 65 0a |r| lets |you see.|
|000012c0| 25 20 73 70 61 63 65 73 | 20 61 6e 64 20 7b 5c 62 |% spaces| and {\b|
|000012d0| 66 20 61 6c 6c 7d 20 62 | 72 61 63 65 73 2e 20 7c |f all} b|races. ||
|000012e0| 5c 40 74 66 6f 72 7c 20 | 77 6f 75 6c 64 20 74 72 |\@tfor| |would tr|
|000012f0| 65 61 74 20 7b 5c 74 74 | 20 61 7d 20 61 6e 64 0a |eat {\tt| a} and.|
|00001300| 25 20 7c 7b 61 7d 7c 20 | 61 73 20 20 73 70 65 63 |% |{a}| |as spec|
|00001310| 69 61 6c 2c 20 62 75 74 | 20 6e 6f 74 20 7c 7b 7b |ial, but| not |{{|
|00001320| 61 7d 7d 7c 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |a}}|..% | \begi|
|00001330| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 5c 64 65 |n{macroc|ode}.\de|
|00001340| 66 5c 40 65 6e 6c 6f 6f | 70 7b 5c 66 75 74 75 72 |f\@enloo|p{\futur|
|00001350| 65 6c 65 74 5c 40 65 6e | 74 65 6d 70 5c 40 65 6e |elet\@en|temp\@en|
|00001360| 6c 6f 6f 70 40 7d 0a 25 | 20 20 20 20 5c 65 6e 64 |loop@}.%| \end|
|00001370| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 20 20 |{macroco|de}.% |
|00001380| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 63 6f 64 | \begin{|macrocod|
|00001390| 65 7d 0a 5c 64 65 66 5c | 40 65 6e 6c 6f 6f 70 40 |e}.\def\|@enloop@|
|000013a0| 7b 25 0a 20 20 5c 69 66 | 78 20 41 5c 40 65 6e 74 |{%. \if|x A\@ent|
|000013b0| 65 6d 70 20 20 20 20 20 | 20 20 20 20 5c 64 65 66 |emp | \def|
|000013c0| 5c 40 74 65 6d 70 61 7b | 5c 40 65 6e 4c 61 62 65 |\@tempa{|\@enLabe|
|000013d0| 6c 5c 41 6c 70 68 20 20 | 7d 5c 65 6c 73 65 0a 20 |l\Alph |}\else. |
|000013e0| 20 5c 69 66 78 20 61 5c | 40 65 6e 74 65 6d 70 20 | \ifx a\|@entemp |
|000013f0| 20 20 20 20 20 20 20 20 | 5c 64 65 66 5c 40 74 65 | |\def\@te|
|00001400| 6d 70 61 7b 5c 40 65 6e | 4c 61 62 65 6c 5c 61 6c |mpa{\@en|Label\al|
|00001410| 70 68 20 20 7d 5c 65 6c | 73 65 0a 20 20 5c 69 66 |ph }\el|se. \if|
|00001420| 78 20 69 5c 40 65 6e 74 | 65 6d 70 20 20 20 20 20 |x i\@ent|emp |
|00001430| 20 20 20 20 5c 64 65 66 | 5c 40 74 65 6d 70 61 7b | \def|\@tempa{|
|00001440| 5c 40 65 6e 4c 61 62 65 | 6c 5c 72 6f 6d 61 6e 20 |\@enLabe|l\roman |
|00001450| 7d 5c 65 6c 73 65 0a 20 | 20 5c 69 66 78 20 49 5c |}\else. | \ifx I\|
|00001460| 40 65 6e 74 65 6d 70 20 | 20 20 20 20 20 20 20 20 |@entemp | |
|00001470| 5c 64 65 66 5c 40 74 65 | 6d 70 61 7b 5c 40 65 6e |\def\@te|mpa{\@en|
|00001480| 4c 61 62 65 6c 5c 52 6f | 6d 61 6e 20 7d 5c 65 6c |Label\Ro|man }\el|
|00001490| 73 65 0a 20 20 5c 69 66 | 78 20 31 5c 40 65 6e 74 |se. \if|x 1\@ent|
|000014a0| 65 6d 70 20 20 20 20 20 | 20 20 20 20 5c 64 65 66 |emp | \def|
|000014b0| 5c 40 74 65 6d 70 61 7b | 5c 40 65 6e 4c 61 62 65 |\@tempa{|\@enLabe|
|000014c0| 6c 5c 61 72 61 62 69 63 | 7d 5c 65 6c 73 65 0a 20 |l\arabic|}\else. |
|000014d0| 20 5c 69 66 78 20 5c 40 | 73 70 74 6f 6b 65 6e 5c | \ifx \@|sptoken\|
|000014e0| 40 65 6e 74 65 6d 70 20 | 5c 6c 65 74 5c 40 74 65 |@entemp |\let\@te|
|000014f0| 6d 70 61 5c 40 65 6e 53 | 70 61 63 65 20 20 20 20 |mpa\@enS|pace |
|00001500| 20 20 20 20 20 5c 65 6c | 73 65 0a 20 20 5c 69 66 | \el|se. \if|
|00001510| 78 20 5c 62 67 72 6f 75 | 70 5c 40 65 6e 74 65 6d |x \bgrou|p\@entem|
|00001520| 70 20 20 20 5c 6c 65 74 | 5c 40 74 65 6d 70 61 5c |p \let|\@tempa\|
|00001530| 40 65 6e 47 72 6f 75 70 | 20 20 20 20 20 20 20 20 |@enGroup| |
|00001540| 20 5c 65 6c 73 65 0a 20 | 20 5c 69 66 78 20 5c 40 | \else. | \ifx \@|
|00001550| 65 6e 75 6d 40 5c 40 65 | 6e 74 65 6d 70 20 20 20 |enum@\@e|ntemp |
|00001560| 5c 6c 65 74 5c 40 74 65 | 6d 70 61 5c 40 67 6f 62 |\let\@te|mpa\@gob|
|00001570| 62 6c 65 20 20 20 20 20 | 20 20 20 20 20 5c 65 6c |ble | \el|
|00001580| 73 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |se. | |
|00001590| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 6c 65 74 | | \let|
|000015a0| 5c 40 74 65 6d 70 61 5c | 40 65 6e 4f 74 68 65 72 |\@tempa\|@enOther|
|000015b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 66 |. | \f|
|000015c0| 69 5c 66 69 5c 66 69 5c | 66 69 5c 66 69 5c 66 69 |i\fi\fi\|fi\fi\fi|
|000015d0| 5c 66 69 5c 66 69 0a 25 | 20 20 20 20 5c 65 6e 64 |\fi\fi.%| \end|
|000015e0| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 5c 65 |{macroco|de}.% \e|
|000015f0| 6e 64 7b 6d 61 63 72 6f | 7d 0a 25 20 50 72 6f 63 |nd{macro|}.% Proc|
|00001600| 65 73 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ess the |current |
|00001610| 74 6f 6b 65 6e 2c 20 74 | 68 65 6e 20 6c 6f 6f 6b |token, t|hen look|
|00001620| 20 61 74 20 74 68 65 20 | 6e 65 78 74 2e 0a 25 20 | at the |next..% |
|00001630| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|00001640| 6f 64 65 7d 0a 20 20 5c | 40 74 65 6d 70 61 7d 0a |ode}. \|@tempa}.|
|00001650| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|00001660| 6f 64 65 7d 0a 25 20 5c | 65 6e 64 7b 6d 61 63 72 |ode}.% \|end{macr|
|00001670| 6f 7d 0a 25 0a 25 20 5c | 62 65 67 69 6e 7b 6d 61 |o}.%.% \|begin{ma|
|00001680| 63 72 6f 7d 7b 5c 65 6e | 75 6d 65 72 61 74 65 7d |cro}{\en|umerate}|
|00001690| 0a 25 20 54 68 65 20 6e | 65 77 20 7b 5c 74 74 20 |.% The n|ew {\tt |
|000016a0| 65 6e 75 6d 65 72 61 74 | 65 7d 20 65 6e 76 69 72 |enumerat|e} envir|
|000016b0| 6f 6e 6d 65 6e 74 2e 20 | 54 68 69 73 20 69 73 20 |onment. |This is |
|000016c0| 74 68 65 20 66 69 72 73 | 74 20 68 61 6c 66 20 6f |the firs|t half o|
|000016d0| 66 20 74 68 65 0a 25 20 | 6f 72 69 67 69 6e 61 6c |f the.% |original|
|000016e0| 20 65 6e 75 6d 65 72 61 | 74 65 20 65 6e 76 69 72 | enumera|te envir|
|000016f0| 6f 6e 6d 65 6e 74 2e 20 | 49 66 20 74 68 65 72 65 |onment. |If there|
|00001700| 20 69 73 20 61 6e 20 6f | 70 74 69 6f 6e 61 6c 20 | is an o|ptional |
|00001710| 61 72 67 75 6d 65 6e 74 | 2c 20 63 61 6c 6c 0a 25 |argument|, call.%|
|00001720| 20 7c 5c 40 40 65 6e 75 | 6d 40 7c 20 74 6f 20 64 | |\@@enu|m@| to d|
|00001730| 65 66 69 6e 65 20 74 68 | 65 20 6c 61 62 65 6c 20 |efine th|e label |
|00001740| 63 6f 6d 6d 61 6e 64 73 | 2c 20 6f 74 68 65 72 77 |commands|, otherw|
|00001750| 69 73 65 20 63 61 6c 6c | 0a 25 20 7c 5c 40 65 6e |ise call|.% |\@en|
|00001760| 75 6d 40 7c 20 77 68 69 | 63 68 20 69 73 20 74 68 |um@| whi|ch is th|
|00001770| 65 20 73 65 63 6f 6e 64 | 20 68 61 6c 66 20 6f 66 |e second| half of|
|00001780| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 64 65 | the ori|ginal de|
|00001790| 66 69 6e 69 74 69 6f 6e | 2e 0a 25 20 20 20 20 5c |finition|..% \|
|000017a0| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|000017b0| 0a 5c 64 65 66 5c 65 6e | 75 6d 65 72 61 74 65 7b |.\def\en|umerate{|
|000017c0| 25 0a 20 20 5c 69 66 6e | 75 6d 20 5c 40 65 6e 75 |%. \ifn|um \@enu|
|000017d0| 6d 64 65 70 74 68 20 3e | 33 20 5c 40 74 6f 6f 64 |mdepth >|3 \@tood|
|000017e0| 65 65 70 5c 65 6c 73 65 | 0a 20 20 20 20 20 20 5c |eep\else|. \|
|000017f0| 61 64 76 61 6e 63 65 5c | 40 65 6e 75 6d 64 65 70 |advance\|@enumdep|
|00001800| 74 68 20 5c 40 6e 65 0a | 20 20 20 20 20 20 5c 65 |th \@ne.| \e|
|00001810| 64 65 66 5c 40 65 6e 75 | 6d 63 74 72 7b 65 6e 75 |def\@enu|mctr{enu|
|00001820| 6d 5c 72 6f 6d 61 6e 6e | 75 6d 65 72 61 6c 5c 74 |m\romann|umeral\t|
|00001830| 68 65 5c 40 65 6e 75 6d | 64 65 70 74 68 7d 5c 66 |he\@enum|depth}\f|
|00001840| 69 0a 20 20 5c 40 69 66 | 6e 65 78 74 63 68 61 72 |i. \@if|nextchar|
|00001850| 5b 7b 5c 40 40 65 6e 75 | 6d 40 7d 7b 5c 40 65 6e |[{\@@enu|m@}{\@en|
|00001860| 75 6d 40 7d 7d 0a 25 20 | 20 20 20 5c 65 6e 64 7b |um@}}.% | \end{|
|00001870| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 25 20 5c 65 6e |macrocod|e}.% \en|
|00001880| 64 7b 6d 61 63 72 6f 7d | 0a 25 0a 25 20 5c 62 65 |d{macro}|.%.% \be|
|00001890| 67 69 6e 7b 6d 61 63 72 | 6f 7d 7b 5c 40 40 65 6e |gin{macr|o}{\@@en|
|000018a0| 75 6d 40 7d 0a 25 20 48 | 61 6e 64 6c 65 20 74 68 |um@}.% H|andle th|
|000018b0| 65 20 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |e option|al argum|
|000018c0| 65 6e 74 2e 2e 0a 25 20 | 20 20 20 5c 62 65 67 69 |ent...% | \begi|
|000018d0| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 5c 64 65 |n{macroc|ode}.\de|
|000018e0| 66 5c 40 40 65 6e 75 6d | 40 5b 23 31 5d 7b 25 0a |f\@@enum|@[#1]{%.|
|000018f0| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|00001900| 6f 64 65 7d 0a 25 20 49 | 6e 69 74 69 61 6c 69 73 |ode}.% I|nitialis|
|00001910| 65 20 74 68 65 20 6c 6f | 6f 70 20 77 68 69 63 68 |e the lo|op which|
|00001920| 20 77 69 6c 6c 20 62 72 | 65 61 6b 20 61 70 61 72 | will br|eak apar|
|00001930| 74 20 74 68 65 20 6f 70 | 74 69 6f 6e 61 6c 20 61 |t the op|tional a|
|00001940| 72 67 75 6d 65 6e 74 2e | 0a 25 20 54 68 65 20 63 |rgument.|.% The c|
|00001950| 6f 6d 6d 61 6e 64 20 74 | 6f 20 70 72 69 6e 74 20 |ommand t|o print |
|00001960| 74 68 65 20 6c 61 62 65 | 6c 20 69 73 20 62 75 69 |the labe|l is bui|
|00001970| 6c 74 20 75 70 20 69 6e | 20 7c 5c 40 65 6e 6c 61 |lt up in| |\@enla|
|00001980| 62 7c 2e 0a 25 20 7c 5c | 40 65 6e 54 68 65 7c 20 |b|..% |\|@enThe| |
|00001990| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 20 74 6f 20 |will be |used to |
|000019a0| 64 65 66 69 6e 65 20 7c | 5c 74 68 65 65 6e 75 6d |define ||\theenum|
|000019b0| 7c 5c 2c 24 6e 24 2e 0a | 25 20 20 20 20 5c 62 65 ||\,$n$..|% \be|
|000019c0| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 20 |gin{macr|ocode}. |
|000019d0| 20 5c 40 65 6e 4c 61 62 | 7b 7d 5c 6c 65 74 5c 40 | \@enLab|{}\let\@|
|000019e0| 65 6e 54 68 65 5c 40 65 | 6e 51 6d 61 72 6b 0a 25 |enThe\@e|nQmark.%|
|000019f0| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|00001a00| 64 65 7d 0a 25 20 54 68 | 65 20 7c 5c 40 65 6e 75 |de}.% Th|e |\@enu|
|00001a10| 6d 40 7c 20 62 65 6c 6f | 77 20 69 73 20 6e 65 76 |m@| belo|w is nev|
|00001a20| 65 72 20 65 78 70 61 6e | 64 65 64 2c 20 69 74 20 |er expan|ded, it |
|00001a30| 69 73 20 75 73 65 64 20 | 74 6f 20 64 65 74 65 63 |is used |to detec|
|00001a40| 74 20 74 68 65 20 65 6e | 64 0a 25 20 6f 66 20 74 |t the en|d.% of t|
|00001a50| 68 65 20 74 6f 6b 65 6e | 20 6c 69 73 74 2e 0a 25 |he token| list..%|
|00001a60| 20 20 20 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f | \beg|in{macro|
|00001a70| 63 6f 64 65 7d 0a 20 20 | 5c 40 65 6e 6c 6f 6f 70 |code}. |\@enloop|
|00001a80| 23 31 5c 40 65 6e 75 6d | 40 0a 25 20 20 20 20 5c |#1\@enum|@.% \|
|00001a90| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00001aa0| 20 49 73 73 75 65 20 61 | 20 77 61 72 6e 69 6e 67 | Issue a| warning|
|00001ab0| 20 69 66 20 77 65 20 64 | 69 64 20 6e 6f 74 20 66 | if we d|id not f|
|00001ac0| 69 6e 64 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 60 |ind one |of the `|
|00001ad0| 73 70 65 63 69 61 6c 27 | 20 74 6f 6b 65 6e 73 2e |special'| tokens.|
|00001ae0| 0a 25 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.% \b|egin{mac|
|00001af0| 72 6f 63 6f 64 65 7d 0a | 20 20 5c 69 66 78 5c 40 |rocode}.| \ifx\@|
|00001b00| 65 6e 54 68 65 5c 40 65 | 6e 51 6d 61 72 6b 5c 40 |enThe\@e|nQmark\@|
|00001b10| 77 61 72 6e 69 6e 67 7b | 54 68 65 20 63 6f 75 6e |warning{|The coun|
|00001b20| 74 65 72 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |ter will| not be |
|00001b30| 70 72 69 6e 74 65 64 2e | 25 0a 20 20 20 5e 5e 4a |printed.|%. ^^J|
|00001b40| 5c 73 70 61 63 65 5c 40 | 73 70 61 63 65 73 5c 40 |\space\@|spaces\@|
|00001b50| 73 70 61 63 65 73 5c 40 | 73 70 61 63 65 73 20 54 |spaces\@|spaces T|
|00001b60| 68 65 20 6c 61 62 65 6c | 20 69 73 3a 20 5c 74 68 |he label| is: \th|
|00001b70| 65 5c 40 65 6e 4c 61 62 | 7d 5c 66 69 0a 25 20 20 |e\@enLab|}\fi.% |
|00001b80| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00001b90| 7d 0a 25 20 44 65 66 69 | 6e 65 20 7c 5c 6c 61 62 |}.% Defi|ne |\lab|
|00001ba0| 65 6c 65 6e 75 6d 7c 24 | 5c 2c 6e 24 20 61 6e 64 |elenum|$|\,n$ and|
|00001bb0| 20 7c 5c 74 68 65 65 6e | 75 6d 7c 24 5c 2c 6e 24 | |\theen|um|$\,n$|
|00001bc0| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|00001bd0| 63 72 6f 63 6f 64 65 7d | 0a 20 20 5c 65 78 70 61 |crocode}|. \expa|
|00001be0| 6e 64 61 66 74 65 72 5c | 65 64 65 66 5c 63 73 6e |ndafter\|edef\csn|
|00001bf0| 61 6d 65 20 6c 61 62 65 | 6c 5c 40 65 6e 75 6d 63 |ame labe|l\@enumc|
|00001c00| 74 72 5c 65 6e 64 63 73 | 6e 61 6d 65 7b 5c 74 68 |tr\endcs|name{\th|
|00001c10| 65 5c 40 65 6e 4c 61 62 | 7d 25 0a 20 20 5c 65 78 |e\@enLab|}%. \ex|
|00001c20| 70 61 6e 64 61 66 74 65 | 72 5c 6c 65 74 5c 63 73 |pandafte|r\let\cs|
|00001c30| 6e 61 6d 65 20 74 68 65 | 5c 40 65 6e 75 6d 63 74 |name the|\@enumct|
|00001c40| 72 5c 65 6e 64 63 73 6e | 61 6d 65 5c 40 65 6e 54 |r\endcsn|ame\@enT|
|00001c50| 68 65 0a 25 20 20 20 20 | 5c 65 6e 64 7b 6d 61 63 |he.% |\end{mac|
|00001c60| 72 6f 63 6f 64 65 7d 0a | 25 20 53 65 74 20 74 68 |rocode}.|% Set th|
|00001c70| 65 20 63 6f 75 6e 74 65 | 72 20 74 6f 20 37 20 73 |e counte|r to 7 s|
|00001c80| 6f 20 74 68 61 74 20 77 | 65 20 67 65 74 20 74 68 |o that w|e get th|
|00001c90| 65 20 77 69 64 74 68 20 | 6f 66 20 60 76 69 69 27 |e width |of `vii'|
|00001ca0| 20 69 66 20 72 6f 6d 61 | 6e 0a 25 20 6e 75 6d 62 | if roma|n.% numb|
|00001cb0| 65 72 69 6e 67 20 69 73 | 20 69 6e 20 66 6f 72 63 |ering is| in forc|
|00001cc0| 65 20 74 68 65 6e 20 73 | 65 74 20 7c 5c 6c 65 66 |e then s|et |\lef|
|00001cd0| 74 6d 61 72 67 69 6e 7c | 24 5c 2c 6e 24 2e 20 74 |tmargin||$\,n$. t|
|00001ce0| 6f 20 74 68 65 20 77 69 | 64 74 68 20 6f 66 20 74 |o the wi|dth of t|
|00001cf0| 68 65 0a 25 20 6c 61 62 | 65 6c 20 70 6c 75 73 20 |he.% lab|el plus |
|00001d00| 7c 5c 6c 61 62 65 6c 73 | 65 70 7c 2e 0a 25 20 20 ||\labels|ep|..% |
|00001d10| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|00001d20| 64 65 7d 0a 20 20 5c 63 | 73 6e 61 6d 65 20 63 40 |de}. \c|sname c@|
|00001d30| 5c 40 65 6e 75 6d 63 74 | 72 5c 65 6e 64 63 73 6e |\@enumct|r\endcsn|
|00001d40| 61 6d 65 37 0a 20 20 5c | 65 78 70 61 6e 64 61 66 |ame7. \|expandaf|
|00001d50| 74 65 72 5c 73 65 74 74 | 6f 77 69 64 74 68 0a 20 |ter\sett|owidth. |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 5c 63 73 6e 61 | | \csna|
|00001d70| 6d 65 20 6c 65 66 74 6d | 61 72 67 69 6e 5c 72 6f |me leftm|argin\ro|
|00001d80| 6d 61 6e 6e 75 6d 65 72 | 61 6c 5c 40 65 6e 75 6d |mannumer|al\@enum|
|00001d90| 64 65 70 74 68 5c 65 6e | 64 63 73 6e 61 6d 65 0a |depth\en|dcsname.|
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 5c 74 68 | | {\th|
|00001db0| 65 5c 40 65 6e 4c 61 62 | 5c 68 73 70 61 63 65 7b |e\@enLab|\hspace{|
|00001dc0| 5c 6c 61 62 65 6c 73 65 | 70 7d 7d 25 0a 25 20 20 |\labelse|p}}%.% |
|00001dd0| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00001de0| 7d 0a 25 20 46 69 6e 61 | 6c 6c 79 20 63 61 6c 6c |}.% Fina|lly call|
|00001df0| 20 7c 5c 40 65 6e 75 6d | 40 7c 20 77 68 69 63 68 | |\@enum|@| which|
|00001e00| 20 69 73 20 74 68 65 20 | 73 65 63 6f 6e 64 20 68 | is the |second h|
|00001e10| 61 6c 66 20 6f 66 20 74 | 68 65 20 6f 72 69 67 69 |alf of t|he origi|
|00001e20| 6e 61 6c 0a 25 20 64 65 | 66 69 6e 69 74 69 6f 6e |nal.% de|finition|
|00001e30| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|00001e40| 63 72 6f 63 6f 64 65 7d | 0a 20 20 5c 40 65 6e 75 |crocode}|. \@enu|
|00001e50| 6d 40 7d 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |m@}.% | \end{ma|
|00001e60| 63 72 6f 63 6f 64 65 7d | 0a 25 20 5c 65 6e 64 7b |crocode}|.% \end{|
|00001e70| 6d 61 63 72 6f 7d 0a 25 | 0a 25 20 5c 62 65 67 69 |macro}.%|.% \begi|
|00001e80| 6e 7b 6d 61 63 72 6f 7d | 7b 5c 40 65 6e 75 6d 40 |n{macro}|{\@enum@|
|00001e90| 7d 0a 25 20 41 6c 6c 20 | 74 68 65 20 6c 69 73 74 |}.% All |the list|
|00001ea0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 68 61 76 65 | paramet|ers have|
|00001eb0| 20 6e 6f 77 20 62 65 65 | 6e 20 64 65 66 69 6e 65 | now bee|n define|
|00001ec0| 64 2c 20 73 6f 20 63 61 | 6c 6c 20 7c 5c 6c 69 73 |d, so ca|ll |\lis|
|00001ed0| 74 7c 2e 20 54 68 69 73 | 0a 25 20 69 73 20 74 61 |t|. This|.% is ta|
|00001ee0| 6b 65 6e 20 73 74 72 61 | 69 67 68 74 20 66 72 6f |ken stra|ight fro|
|00001ef0| 6d 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 64 |m the or|iginal d|
|00001f00| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 7c 5c 65 |efinitio|n of |\e|
|00001f10| 6e 75 6d 65 72 61 74 65 | 7c 2e 0a 25 20 20 20 20 |numerate||..% |
|00001f20| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 63 6f 64 65 |\begin{m|acrocode|
|00001f30| 7d 0a 5c 64 65 66 5c 40 | 65 6e 75 6d 40 7b 5c 6c |}.\def\@|enum@{\l|
|00001f40| 69 73 74 7b 5c 63 73 6e | 61 6d 65 20 6c 61 62 65 |ist{\csn|ame labe|
|00001f50| 6c 5c 40 65 6e 75 6d 63 | 74 72 5c 65 6e 64 63 73 |l\@enumc|tr\endcs|
|00001f60| 6e 61 6d 65 7d 25 0a 20 | 20 20 20 20 20 20 20 20 |name}%. | |
|00001f70| 20 20 7b 5c 75 73 65 63 | 6f 75 6e 74 65 72 7b 5c | {\usec|ounter{\|
|00001f80| 40 65 6e 75 6d 63 74 72 | 7d 5c 64 65 66 5c 6d 61 |@enumctr|}\def\ma|
|00001f90| 6b 65 6c 61 62 65 6c 23 | 23 31 7b 5c 68 73 73 5c |kelabel#|#1{\hss\|
|00001fa0| 6c 6c 61 70 7b 23 23 31 | 7d 7d 7d 7d 0a 25 20 20 |llap{##1|}}}}.% |
|00001fb0| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00001fc0| 7d 0a 25 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 7d 0a |}.% \end|{macro}.|
|00001fd0| 25 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |%.% \|begin{ma|
|00001fe0| 63 72 6f 63 6f 64 65 7d | 0a 25 3c 2f 70 61 63 6b |crocode}|.%</pack|
|00001ff0| 61 67 65 3e 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |age>.% | \end{m|
|00002000| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 0a 25 20 5c 46 |acrocode|}.%.% \F|
|00002010| 69 6e 61 6c 65 0a 25 0a | 5c 65 6e 64 69 6e 70 75 |inale.%.|\endinpu|
|00002020| 74 0a | |t. | |
+--------+-------------------------+-------------------------+--------+--------+